days = {"Sunday", "Monday", "Tuesday", "Wednesday",

              "Thursday", "Friday", "Saturday"}

print(days[1])


tab = {math.sin(1), math.sin(2), math.sin(3), math.sin(4),

           math.sin(5),math.sin(6), math.sin(7), math.sin(8)}
print(tab[1]);



w = {x=0, y=0, label="console"}

x = {math.sin(0), math.sin(1), math.sin(2)}

w[1] = "another field"
w.label = "another label"

print(w.label);

x.f = w

print(w["x"])     --> 0

print(w[1])       --> another field

print(x.f[1])     --> another field

w.x = nil         -- remove field "x"


polyline = {color="blue", thickness=2, npoints=4,

              {x=0,   y=0},

              {x=-20, y=0},

              color2 = "white",

              {x=-30, y=1},

              {x=0,   y=1}

}

print(polyline[3].x)
print(polyline.color)


